package com.it.test.Menthod;

/**
 * @author げっしょく
 * @date 2021/8/9
 */
public class Student {
    public String name;
    public int age;
    private int menoy = 100;

    private Student(String name) {
        this.name = name;
    }

    public Student(int age, int menoy) {
        this.age = age;
        this.menoy = menoy;
    }

    public Student() {
    }

    public Student(String name, int age, int menoy) {
        this.name = name;
        this.age = age;
        this.menoy = menoy;
    }
    public void sleep(){
        System.out.println("sleep ____________");
    }
    public String study(){
        System.out.println("study_______");
        return "study0000";
    }
    private int hq(String name, int age){
        System.out.println("name:" + name + "  age：" + age);
        return 100;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", menoy=" + menoy +
                '}';
    }
}
